Rewriting Queries with Negated Atoms
نویسندگان
چکیده
The current paper have been accepted at the International Joint Conference on Rules and Reasoning (RuleML+RR 2017). We focus on Query rewriting, a popular approach for ontology based data access and in general for first order rewritable knowledge bases. The algorithms defined in the field are based on conjunctive queries with no use of negation over the atoms that are part of them. Also, the constraints present in the knowledge base are ignored in the process of rewriting a query and they are only used to check the consistency of the data. In this paper, we study the problem of answering queries that allow negated atoms. We developed a novel method to use classical rewriting techniques for answering conjunctive queries with negated atoms. For a given conjunctive query with some negated atoms, we propose an algorithm that finds a set of conjunctive queries with no negated atom that contain all the answers of the initial query with respect to the rules. The algorithm uses resolution with respect to the clauses corresponding to the query and the constraints of the system in order to produce rewritings of the initial query without negated atoms. Our approach uses a classical rewriting algorithm as a black box and the constraints in the system to find the set of conjunctive queries without negated atoms that is equivalent to the original query containing negated atoms. A system (COMPLETO) was implemented with the proposed method and compared to another system (REBSIR) that is able to rewrite negated concepts. In the experimental evaluation COMPLETO performed better than REBSIR for most of the datasets in the benchmark and it portrayed a more scalable performance i.e. describing a faster relative performance with respect to REBSIR’s performance with the increase of the size of assertions in the dataset.
منابع مشابه
Rewriting-Based Instance Retrieval for Negated Concepts in Description Logic Ontologies
Instance retrieval computes all instances of a given concept in a consistent description logic (DL) ontology. Although it is a popular task for ontology reasoning, there is no scalable method for instance retrieval for negated concepts by now. This paper studies a new approach to instance retrieval for negated concepts based on query rewriting. A class of DL ontologies called the inconsistency-...
متن کاملQueries with negation and inequalities over lightweight ontologies
While the problem of answering positive existential queries, in particular, conjunctive queries (CQs) and unions of CQs, over description logic ontologies has been studied extensively, there have been few attempts to analyse queries with negated atoms. Our aim is to sharpen the complexity landscape of the problem of answering CQs with negation and inequalities in lightweight description logics ...
متن کاملRewriting queries using views with negation
Data integration and query reformulation are classical examples of problems that require techniques developed in both AI and database systems fields. In this work we address the problem of rewriting queries using views which has many applications. In particular, we consider queries and views that are conjunctive queries with safe negation (CQNs). We prove that given a CQN query and a set of CQN...
متن کاملThe Constructive Method for Query Containment Checking ( extended version )
We present a new method that checks Query Containment for queries with negated derived atoms and/or integrity constraints. Existing methods for Query Containment checking that deal with these cases do not check actually containment but another related property called uniform containment, which is a sufficient but not necessary condition for containment. Our method can be seen as an extension of...
متن کاملA Methodology for Proving
Termination of logic programs with negated body atoms, here called general logic programs, is an important topic. This is also due to the fact that the computational mechanisms used to process negated atoms, like Clark's negation as failure and Chan's constructive negation, are based on termination conditions. This paper introduces a methodology for proving termination of general logic programs...
متن کامل